var esdYzmAudioTimeId;
// 鏈楄楠岃瘉鐮�
function readCaptchaCode() {
	if(top.location == location){
		return
	}
	clearTimeout(esdYzmAudioTimeId);
	// 1. 获取加密代码
    var encryptCaptcha = document.getElementById('esdCaptchaCode').value;
//	console.log(encryptCaptcha);
	// 2. 发送
	$.ajax({
		type: 'GET',
		url: "https://www.yunmd.net/ws/dec",// 鏃犻殰纰嶄簯杞崲MP3璺緞
		dataType: 'jsonp',
		jsonp: "callback",
		data: {
			"b": encryptCaptcha,
			"s": "4"
		},
		async: false,
		success: function (data) {
			//top.clearTimeout(top.pointSpeakTimeId);
			if(top.statuspointread == "off"){
			    esdYzmAudioTimeId = setTimeout(function(){
					if($(".esdYzmAudio").length>0){
						var audio =$('.esdYzmAudio').get(0);//jQuery瀵硅薄 
						audio.pause()
						$(".esdYzmAudio").remove();
					}
					$("body").append('<audio autoplay="autoplay" class="esdYzmAudio" src="'+data.u+'"></audio>');
				},3500);
			}else{
				if($(".esdYzmAudio").length>0){
					var audio =$('.esdYzmAudio').get(0);//jQuery瀵硅薄 
					audio.pause()
					$(".esdYzmAudio").remove();
				}
				$("body").append('<audio autoplay="autoplay"  class="esdYzmAudio" src="'+data.u+'"></audio>');
			}
		},
		error:function(e){
		//	console.log(e);
		}
	});
}
function wzayzm(urls,imgdiv){
	var xmlhttp;
	xmlhttp=new XMLHttpRequest();
	xmlhttp.open("GET",urls,true);
	xmlhttp.responseType = "blob";

	xmlhttp.onload = function(){
		
		if (this.status == 200) {
			var blob = this.response;
			var img = document.createElement("img");
			img.onload = function(e) {
				window.URL.revokeObjectURL(img.src); 
			};
			img.src = window.URL.createObjectURL(blob);
			img.title="鍥剧墖楠岃瘉鐮�";
			$(imgdiv).html(img);   
		$("#esdCaptchaCode").val(xmlhttp.getResponseHeader("code"));
		}
	}
	xmlhttp.send();
}